# Customize to your system's specifications

CC=avr-gcc
AR=ar
MMCU=atmega168
F_CPU=16000000

# Below this point, nothing should be modified
SRC=hd44780.c
OUTPUT=hd44780.o
LIB=libhd44780-4bit.a
OPTIONS=-std=gnu99 -Os -mmcu=${MMCU} -DF_CPU=${F_CPU}

all: compile

compile:
	${CC} -c ${SRC} -o ${OUTPUT} ${OPTIONS}
	${AR} rcs ${LIB} ${OUTPUT}

clean:
	-rm -f ${OUTPUT} ${LIB}
